<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <%@include file="../../_header.jsp" %>
  <div id="conteudo">
    <div id="conteudo1"></div>
    <p align="center" class="style2">&nbsp;</p>
    <form id="form1" name="form1" method="post" action="RotuloServlet">
    <input type="hidden" name="comando" value="alterar" />
    <input type="hidden" name="idAlterar" value="<c:out value='${rotuloAlterar.id}'/>" />
    
      <table width="446" border="0" align="center" cellpadding="5" cellspacing="0">
      	<tr>
          <td colspan="2"><div align="center"><span class="style8">Altera&ccedil&atildeo de R&oacutetulos </span></div></td>
        </tr>
        <tr>
          <td width="206"><div align="left"><span class="style6">Nome:</span></div></td>
          <td width="220"><label>
            <input type="text" name="nomeAlterar" id="nomeAlterar" value="<c:out value='${rotuloAlterar.nome}' />"/>
          </label></td>
        </tr>
        <tr>
          <td><div align="left"><span class="style6">Tipo:</span></div></td>
          <td><label>
            <select name="tipoAlterar" id="tipoAlterar">
			<option value="0"> </option>
              <c:forEach var="item" items="${listaTipos}">
					<option value="<c:out value='${item.codTipo}'/>"<c:if test="${rotuloAlterar.tipo.codTipo == item.codTipo}"> selected="selected" </c:if>><c:out
					value="${item.tipo}"/></option>
			  </c:forEach>
            </select>
          </label></td>
        </tr>
        <tr>
          <td><div align="left"><span class="style6">Marca:</span></div></td>
          <td><select name="marcaAlterar" id="marcaAlterar">
          	<option value="0"> </option>
          	<c:forEach var="item" items="${listaMarcas}">
					<option value="<c:out value='${item.codMarca}'/>" <c:if test="${rotuloAlterar.marca.codMarca == item.codMarca}"> selected="selected" </c:if>><c:out
					value="${item.marca}"/></option>
			</c:forEach>
          </select></td>
        </tr>
        <tr>
          <td><div align="left"><span class="style6">Pa&iacutes de Origem:</span></div></td>
          <td><label>
            <select name="paisAlterar" id="paisAlterar">
            	<option value="0"> </option>
              	<c:forEach var="item" items="${listaPaises}">
					<option value="<c:out value='${item.codPais}'/>"<c:if test="${rotuloAlterar.pais.codPais == item.codPais}"> selected="selected" </c:if>><c:out
					value="${item.pais}"/></option>
				</c:forEach>
            </select>
          </label></td>
        </tr>
        <tr>
          <td><div align="left"><span class="style6">Classifica&ccedil&atildeo:</span></div></td>
          <td><label>
            <input type="radio" name="classifAlterar" id="Cerveja" value="Cerveja" <c:if test="${rotuloAlterar.classificacao == 'Cerveja'}"> checked="checked" </c:if>/>
          </label>
          Cerveja 
          <label>
          <input type="radio" name="classifAlterar" id="Chopp" value="Chopp"  <c:if test="${rotuloAlterar.classificacao == 'Chopp'}"> checked="checked" </c:if>/>
          </label>
          Chopp</td>
        </tr>
        <tr>
          <td><div align="left"><span class="style6">Faixa de Temperatura:</span></div></td>
          <td><label>
            <select name="faixaAlterar" id="faixaAlterar">
            	<option value="0"> </option>
            	<c:forEach var="item" items="${listaTemperaturas}">
					<option value="<c:out value='${item.codFaixa}'/>" <c:if test="${rotuloAlterar.faixaTemp.codFaixa == item.codFaixa}"> selected="selected" </c:if>>
					<c:out value="${item.temperaturaMinima}"/> a <c:out value="${item.temperaturaMaxima}"/> </option>
				</c:forEach>
            </select>
          </label></td>
        </tr>
        <tr>
          <td><div align="left"><span class="style6">Teor Alco&oacutelico:</span></div></td>
          <td><label>
            <input type="text" name="teorAlterar" id="teorAlterar" value="<c:out value='${rotuloAlterar.teorAlcoolico}' />"/>
          </label></td>
        </tr>
        <tr>
          <td colspan="2"><label>            
            <div align="center">
              <input type="submit" name="alterar" id="alterar" value="Alterar" />
              </div>
          </label></td>
        </tr>        
      </table>
    </form>
    <p>&nbsp;</p>
  </div>  
  <div align="left"></div>
  
  <%@include file="../../_footer.jsp" %>
